package com.yunbo.crm.service;

import com.yunbo.crm.base.BaseServices;
import com.yunbo.crm.model.UserModel;
import com.yunbo.crm.pojo.User;
import com.yunbo.crm.query.UserQuery;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @Author : yun&bo
 * @CreateDate : ==>2021/1/19 23:40
 * @ClassName : ==>
 * @Description : ==>
 * @Version
 */
public interface UserService extends BaseServices<User, Integer> {

    UserModel userLogin(String userName, String pwd);

    void updateUserPwd(Integer userId, String userPwd, String newPwd, String repeatPwd);

    /**
     * 查询所有销售人员
     */
    List<Map<String, Object>> queryAllSales();

    Map<String, Object> userList(UserQuery userQuery);

    void saveUser(User user);

    void updateUser(User user, HttpServletRequest request);

    void deleteUserByIds(Integer[] ids);
}
